package com.lieve.servicea.config;

import org.redisson.Redisson;
import org.redisson.config.Config;

/**
 * @author sunlijiang
 * @date 2020/1/4
 */
public class RedissonManager {

    private static Config config = new Config();

    private static Redisson redisson;

    static {
        config.useSingleServer().setAddress("127.0.0.1:6379");
        redisson = (Redisson) Redisson.create(config);
    }

    public static Redisson getRedisson() {
        return redisson;
    }
}
